home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
lang
/
SmallEiffel.lha
/
SmallEiffel
/
bin_c
/
compile_to_jvm4.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-12-22
|
3KB
|
237 lines
/*
-- ANSI C code generated by :
-- SmallEiffel The GNU Eiffel Compiler -- Release (- 0.79) --
-- Copyright (C), 1994-98 - LORIA - UHP - CRIN - INRIA - FRANCE --
-- Dominique COLNET and Suzanne COLLIN - colnet@loria.fr --
-- http://www.loria.fr/SmallEiffel --
*/
#include "compile_to_jvm.h"
T92 r92realloc(T92 C,T2 a1,T2 a2){
T92 R=NULL;
R=calloc(a2,sizeof(T0*));
r92copy_from(R,C,(a1)-(1));
return R;
}
void r92copy_from(T92 C,T92 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T314 r314realloc(T314 C,T2 a1,T2 a2){
T314 R=NULL;
R=calloc(a2,sizeof(T0*));
r314copy_from(R,C,(a1)-(1));
return R;
}
void r314copy_from(T314 C,T314 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T228 r228realloc(T228 C,T2 a1,T2 a2){
T228 R=NULL;
R=calloc(a2,sizeof(T0*));
r228copy_from(R,C,(a1)-(1));
return R;
}
void r228clear_all(T228 C,T2 a1){
T2 _i=0;
T0* _v=NULL;
_i=a1;
while (!((_i)<(0))) {
(C)[_i]=(_v);
_i=(_i)-(1);
}
}
void r228copy_from(T228 C,T228 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T84 r84realloc(T84 C,T2 a1,T2 a2){
T84 R=NULL;
R=calloc(a2,sizeof(T0*));
r84copy_from(R,C,(a1)-(1));
return R;
}
void r84copy_from(T84 C,T84 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T69 r69realloc(T69 C,T2 a1,T2 a2){
T69 R=NULL;
R=calloc(a2,sizeof(T0*));
r69copy_from(R,C,(a1)-(1));
return R;
}
void r69set_all_with(T69 C,T0* a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=(a1);
_i=(_i)-(1);
}
}
T6 r69equal_like(T0* a1,T0* a2){
T6 R=0;
/*[IF*/
/*AF*//*AF*/if((a1)==((void*)(a2))){
R=1;
}
else if(((a1)==((void*)(NULL)))||((a2)==((void*)(NULL)))){
}
else{
R=r7is_equal(((T7*)a1),a2);
}
/*FI]*/
return R;
}
T2 r69fast_index_of(T69 C,T0* a1,T2 a2){
T2 R=0;
while (!(((R)>(a2))||((a1)==((void*)((C)[R]))))) {
R=(R)+(1);
}
return R;
}
void r69copy_from(T69 C,T69 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T2 r69index_of(T69 C,T0* a1,T2 a2){
T2 R=0;
while (!(((R)>(a2))||(r69equal_like(a1,(C)[R])))) {
R=(R)+(1);
}
return R;
}
T240 r240realloc(T240 C,T2 a1,T2 a2){
T240 R=NULL;
R=calloc(a2,sizeof(T0*));
r240copy_from(R,C,(a1)-(1));
return R;
}
void r240copy_from(T240 C,T240 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T233 r233realloc(T233 C,T2 a1,T2 a2){
T233 R=NULL;
R=calloc(a2,sizeof(T0*));
r233copy_from(R,C,(a1)-(1));
return R;
}
void r233copy_from(T233 C,T233 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T385 r385realloc(T385 C,T2 a1,T2 a2){
T385 R=NULL;
R=calloc(a2,sizeof(T0*));
r385copy_from(R,C,(a1)-(1));
return R;
}
void r385set_all_with(T385 C,T0* a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=(a1);
_i=(_i)-(1);
}
}
void r385copy_from(T385 C,T385 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T80 r80realloc(T80 C,T2 a1,T2 a2){
T80 R=NULL;
R=calloc(a2,sizeof(T0*));
r80copy_from(R,C,(a1)-(1));
return R;
}
void r80copy_from(T80 C,T80 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}